package main.day11;

import java.util.ArrayList;
import java.util.List;

public class Test3 {
    public static void main(String[] args) {
        List<C> list = new ArrayList<C>();
        F f = new F();
        f.test(list);
    }

}

class F{
    public  void test(List<? extends D> list){
        System.out.println(list);
    }
}

interface  D{

}
class A {

}
class B extends  A implements D{

}
class C extends  B{

}
